package com.echo.echovividlive.service;

import com.echo.echovividlive.domain.dto.FollowingVideosDTO;
import com.echo.echovividlive.domain.dto.PageQueryDTO;
import com.echo.echovividlive.domain.dto.VideoPageDTO;
import com.echo.echovividlive.domain.entity.Result;
import com.echo.echovividlive.domain.entity.Video;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.FileNotFoundException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiajunjie
 * @since 2024-10-22
 */
public interface IVideoService extends IService<Video> {

    Result upload(MultipartFile video) throws FileNotFoundException;

    Result post(Video video);

    Result delete(Video video);

    Result pageList(VideoPageDTO pageQueryDTO);

    Result getVideo(Integer videoId);

    Result getFollowingVideos(FollowingVideosDTO pageQueryDTO);

    Result isVideoLike(Integer videoId);

    Result getLikedVideos(VideoPageDTO pageQueryDTO);

    Result uploadCover(MultipartFile cover);
}
